#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>

/*//进程结束
int main(int argc, char* argv[])
{

	printf("xiao\n");
	//进程结束
	printf("yu\n");
	exit(0);
	while(1);
}*/


//进程回收
int main(int argc, char* argv[])
{
	pid_t pid;
	pid = fork();
	if(pid < 0)
	{
		perror("pid");	
		return -1;
	}else if(pid == 0)
	{
		sleep(100);
		exit(2);
	}else
	{
		printf("fader ower\n");
	}
}
























